<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div#d1{
            background-image: url(../static/images/img-1630322201766ca800624878f2ea90175bd9b80648541.jpg);
            color: white;
        }

        body{
            background-image: url(../static/images/a.jpg);
            /*默认 repeat*/
            background-repeat: repeat-x;
        }

        #boder{
            /*边框粗细*/
            /*border-width: 1px;*/
            /*边框样式*/
            /*border-style: solid;*/
            /*边框颜色*/
            /*border-color: red;*/

            border: 1px solid red;
            width: 100px;
            height: 100px;

            /*调间距，调儿子*/
            /*margin-top: 30px;
            margin-left: 50px;*/
            /*margin: 30px 50px;*/   /*上左*/
            margin: 10px 0 0 10px;      /*上右下左*/
        }

        #d2,#d3{
            width: 200px;
            height: 200px;
            border: 1px solid #000;
        }
        #d3{
            width: 50px;
            height: 50px;
        }
        #d2{
            /*填充是调父亲*/
            padding-left: 100px;
            /*处理填充后父亲变大*/
            box-sizing: border-box;
        }
    </style>

</head>
<body>

    <div id="d1">1111</div>

    <div id="boder">boder</div>


    <div id="d2">
        <div id="d3"></div>
    </div>

</body>
</html>

